//
//  GPMessageModel.h
//  StudyDemo01
//
//  Created by xinchen on 2024/7/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

// 消息类型枚举
typedef NS_ENUM(NSUInteger, GPMessageType) {
    GPMessageTypeText,
    GPMessageTypeImage,
    GPMessageTypeVideo,
    GPMessageTypeAudio,
    // 其他类型
};

@interface GPMessageModel : NSObject

@property (nonatomic, copy) NSString *messageID;   // 消息ID
@property (nonatomic, copy) NSString *senderID;    // 发送者ID
@property (nonatomic, copy) NSString *receiverID;  // 接收者ID
@property (nonatomic, copy) NSString *content;     // 消息内容
@property (nonatomic, assign) GPMessageType type;    // 消息类型
@property (nonatomic, strong) NSDate *timestamp;   // 时间戳
@property (nonatomic, assign) BOOL isRead;         // 是否已读
@property (nonatomic, copy) NSDictionary *extraInfo; // 附加信息，如附件

@end

NS_ASSUME_NONNULL_END
